View Issue Details

IDProjectCategoryView StatusLast Update
0001386T99X171.00 SKB EagleSW Issuepublic2021-12-24 09:21
Reporter(ALTech) Younkwang Jung Assigned To(ALTech) Younkwang Jung Due Date
PriorityhighSeveritys4-minorReproducibilityhave not tried
Status closedResolutionunable to reproduce 
Summary0001386: [Smart3][BTF][VoC] Ramoops , rb_erase / dm_bufio
DescriptionHi Kerwin

If Amlogic check RAMOOPS, there seems to be a problem with the situation where it was terminated after connecting to the HID device. (Amologic opinion)
JIRA is https://jira.skbroadband.com/browse/BTFAML-807

kernel panic flow is [dm_bufio -> rb_erase -> NULL pointer]
dm_bufio is an i/o module( keyboard/mouse etc.. buffer operation )

<4>[782025.098192@1] PC is at rb_erase+0x1b0/0x3a8
<4>[782025.098200@1] LR is at __unlink_buffer+0x44/0x78

<4>[782025.101316@1] [<0000000065fa18d4>] rb_erase+0x1b0/0x3a8
<4>[782025.101327@1] [<00000000a95630b3>] __try_evict_buffer+0x68/0x80
<4>[782025.101334@1] [<000000002b582f2f>] dm_bufio_shrink_scan+0xcc/0x160
<4>[782025.101343@1] [<00000000b730df34>] shrink_slab.part.14+0x1f0/0x4d8
<4>[782025.101349@1] [<00000000e603c890>] shrink_node+0x1cc/0x320
<4>[782025.101355@1] [<00000000dc8d8c4d>] kswapd+0x310/0x7f8
<4>[782025.101363@1] [<000000008b4f3d15>] kthread+0xe4/0xf8
<4>[782025.101370@1] [<00000000632933d1>] ret_from_fork+0x10/0x40

Please check this kernel panic issue

Thank you
YK.Jung
TagsNo tags attached.
Attach Tags

Users monitoring this issue

User List (ALTech) JunGyu Kim , (ALTech) SY Yoon , (SW) Brent Choi

Activities

(ALTech) Younkwang Jung

2021-11-08 11:20

developer  

(SW) Kerwin Chen

2021-11-10 14:22

developer   ~0008701

Hi YK,

I don't find correct patch for 'rb_earse()' issue.
Smart3 use kernel 4.9 for Android 10, there is no update in rbtree.c.
Even I see there are some commits for 'rbtree.c' on kernel 5.15, I can't tell if it is OK to apply.

Thanks !

(ALTech) Younkwang Jung

2021-11-10 15:26

developer   ~0008705

Hi Kerwin

There seems to be no problem with rbtree.c on this issue.
It is assumed that there will be an issue in the HID device group.
There is a call stack, so please analyze for the callback trace first and also search for patches related to the callback trace

Thanks!!
YK.Jung

(SW) Kerwin Chen

2021-11-11 09:35

developer   ~0008707

Hi YK,

I think 'dm_bufio' is not for HID devices since HID is known as char driver.
Device mapper(dm) is a virtual block device driver framework in Kernel.
It provides a platform for filter drivers also known as target to map a BIO to multiple block devices, or to modify BIO while it is in transit in kernel.

More, from Linux naming rule, source files of dm_xxx is located in driver/md/ folder.
In Kconfig of 'md' folder, it says "Support multiple physical spindles through a single logical device. Required for RAID and logical volume management"
There is no any relation to HID devices.
Please check it with AML-Korea members.
Thanks !

Issue History

Date Modified Username Field Change
2021-11-08 11:20 (ALTech) Younkwang Jung New Issue
2021-11-08 11:20 (ALTech) Younkwang Jung Status new => assigned
2021-11-08 11:20 (ALTech) Younkwang Jung Assigned To => (SW) Kerwin Chen
2021-11-08 11:20 (ALTech) Younkwang Jung File Added: ME0041_20211012_1c_bf_c0_12_44_4c.zip
2021-11-08 11:20 (ALTech) Younkwang Jung File Added: ME0041_20211012_40_5b_d8_24_a5_8a.zip
2021-11-08 11:20 (ALTech) Younkwang Jung File Added: ME0041_20211012_d4_1b_81_fe_da_75.zip
2021-11-08 11:20 (ALTech) Younkwang Jung Issue Monitored: (SW) Brent Choi
2021-11-08 11:20 (ALTech) Younkwang Jung Issue Monitored: (ALTech) SY Yoon
2021-11-08 11:20 (ALTech) Younkwang Jung Issue Monitored: (ALTech) JunGyu Kim
2021-11-10 14:22 (SW) Kerwin Chen Note Added: 0008701
2021-11-10 15:26 (ALTech) Younkwang Jung Note Added: 0008705
2021-11-11 09:35 (SW) Kerwin Chen Note Added: 0008707
2021-12-20 18:33 (SW) Kerwin Chen Assigned To (SW) Kerwin Chen => (ALTech) Younkwang Jung
2021-12-20 18:33 (SW) Kerwin Chen Status assigned => resolved
2021-12-20 18:33 (SW) Kerwin Chen Resolution open => unable to reproduce
2021-12-23 16:29 (SW) Jacky Chiang Severity s2-severe => s3-moderate
2021-12-23 16:29 (SW) Jacky Chiang Description Updated View Revisions
2021-12-24 09:21 (SW) Kerwin Chen Severity s3-moderate => s4-minor
2021-12-24 09:21 (SW) Kerwin Chen Status resolved => closed